package com.wise.summer.v1.cms.content.menu;

import com.wise.entities.content.Menu;
import com.wise.framework.annotations.ApiInfo;
import com.wise.framework.annotations.Publish;
import com.wise.framework.annotations.validation.AssertEnum;
import com.wise.framework.annotations.validation.NotBlank;
import com.wise.framework.annotations.validation.NotNull;
import com.wise.framework.daoannotations.Column;
import com.wise.framework.summer.BasicSummer;
import com.wise.model.content.enums.MenuType;
import lombok.Getter;
import lombok.Setter;

import static com.wise.model.content.ContentErrMsgs.*;

@Getter
@Setter
@Publish
@ApiInfo("更新菜单")
public class UpdateMenuById extends BasicSummer<Menu> {

    @NotBlank(msg = Err_000500000019)
	private String id;

	@ApiInfo("父菜单id")
	private String parentId;
	@ApiInfo("菜单名")
	private String name;
	@ApiInfo("菜单图标")
	private String icon;
	@ApiInfo("菜单路径")
	private String url;
	@ApiInfo("菜单排序")
	private Integer seqencing;
	@ApiInfo("菜单启用状态。 0：不启用   1：启用")
	private Integer state;
	@ApiInfo("菜单是否底部显示。 0：不显示   1：显示")
	private Integer showStatus;
	@ApiInfo("菜单类型")
	@NotNull(msg = Err_000500000021)
	@AssertEnum(enumClass = MenuType.class, msg = Err_000500000022)
	private Integer type;
	@ApiInfo("扩展信息")
	private String extContent;
	@ApiInfo("微页面别名")
	private String alias;
	@ApiInfo("菜单图")
	private String titlePic;
	@ApiInfo("菜单描述")
	private String description;
	@ApiInfo("菜单图片高度")
	private String titlePicHeight;
}
